package com.caiyj.observe.push;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/12/14 20:40
 */
public class Application {

    public static void main(String[] args) {
        ConcreteObserver observer = new ConcreteObserver();
        ConcreteSubject subject = new ConcreteSubject();
        subject.addObserver(observer);
        subject.giveNewMessage("111");
        subject.notifyObserver();
    }
}
